
# 2311.17080v1

from extra_service.institution import CheckForInstitution

import os
all = os.listdir("data")
all = sorted(all,reverse=True)
all = all[0:500]


for file_name in all:
    if file_name.endswith(".pkl"):
        entry_id = file_name.split(".pkl")[0]
        try:
            CheckForInstitution(entry_id)
        except Exception as e:
            print(f"Error in {entry_id}: {e}")

# CheckForInstitution("2311.17080v1")
